package csel.model.items;

import csel.model.CharacterStats;
import csel.model.DamageTypes;
import csel.model.entity.Character;
import csel.model.entity.Entity;
import csel.model.items.Weapon.weaponType;

public class DeadlyKeyboard extends Weapon
{

	private static final long serialVersionUID = 1L;

	public DeadlyKeyboard()
	{
		super("DeadlyKeyboard", "This is the very keyboard that Alex threatened to stab everyone with.", 30, "Keyboard");
		setBaseUseableOffense(20);
		setMyType(weaponType.twohanded);
	}

	@Override
	public void attackWith(Character self, Entity e)
	{
		if(e != null)
		{
			e.damage(DamageTypes.Direct, self.getCharacterStat(CharacterStats.Offense));
		}
	}

	@Override
	public int applyBonus(CharacterStats cs, int value)
	{
		if(cs == CharacterStats.Offense){
			return(0);
		}
		return value;
	}
}